﻿using ZeroSum.DependencyInjection.Attributes;
using ZeroSum.Domain.Repositories;
using ZeroSumTemplate.Core.Domains.TestAggregate;

namespace ZeroSumTemplate.Core.DomainServices.Tests
{
    [Register]
    public class TestDomainService : ITestDomainService
    {
        private readonly IRepository<Test> _repository;

        public TestDomainService(IRepository<Test> repository)
        {
            _repository = repository;
        }

        public async Task Add(Test test)
        {
            await _repository.AddAsync(test);
        }
    }
}
